local left1 := 25, top := 2, spacing := 6, bottom := 15;
if width > 0 then
SetBounds(spacing,top,spacing+width,bottom)
else
SetBounds(left1,top,left1 - width,bottom);
end,
}
-----
PostOffice.stat+helpBtn
{
// help button on protostatus
_proto: 'protoTextButton,
viewBounds: :ButtonBounds(10),
text: "?",
viewJustify: 8389638,
buttonClickScript: func()
:openHelp(),
}
-----
PostOffice.stat+aboutBtn
{
// about button on protostatus
_proto: 'protoTextButton,
viewBounds: :ButtonBounds(-10),
text: "!",
buttonClickScript: func()
about:open(),
}
-----
PostOffice.helpStuff~
{
// help setup
helpBook: :helpBookTemplate(),
helpView: nil,
openHelp: func()
if helpBook then
begin
if not helpView then
helpView := BuildContext(
{ _proto: GetRoot().TinyTim._proto,
bookRef: helpBook
});
GetRoot().TinyTim:close();
helpView:openManual(helpBook);
end,
}
-----
PostOffice.helpBook+Page1
.# first help book page
.subject 1
About Post Office
.story
Post Office lets you maintain multiple NewtonMail phone numbers and corresponding locations.
It lets you easily switch between sets of these as you travel or commute.
-----
PostOffice.helpBook+Page2
.subject 1
Main View
.story
The Post Office main view, is the one you see when you start the app. It contains two pickers, a status line, a "Sets..." button, and 2 buttons on the status line.
-----
PostOffice.helpBook+Page3
.subject 1
Main View Objects
.story
- The "Sets..." button takes y ou to the Sets View.
- The "!" brings up an about box with version information.
- The "?" brings up this help.
- The Status line displays the current NewtonMail information.
- The Location picker allows you to select a NewtonMail set by its location.
- The Phone picker allows you to select a NewtonMail set by its access number
-----
PostOffice.helpBook+Page4
.subject 1
What Are Sets?
.story
A "set" as defined by Post Office is a NewtonMail access phone number and the corresponding location.
Post Office lets you maintain sets.
-----
PostOffice.helpBook+Page5
.subject 1
Sets View
.story
The Post Office sets view is where you maintain access location and numbers for NewtonMail. This view consists of one picker, two input lines, and three buttons.
-----
PostOffice.helpBook+Page6
.subject 1
Sets View Objects
.story
-The picker allows you to select which existing set you wish to change or delete.
-The two input lines allow you to add new sets or modify the information in an existing one.
-The three buttons are "New", "Delete" "Change", and perform the function as labelled.
-----
PostOffice.helpBook+Page7
.subject 1
How Do I Add A New Set?
.story
-Scrub out the information in the input lines.
-Enter the new information.
-Click the "New" button.
-Confirm by clicking the "Add" button.
-----
PostOffice.helpBook+Page8
.subject 1
How Do I Delete A Set?
.story
-Select the set to be deleted from the picker
-Click the "Delete" button.
-Confirm by clicking the "Confirm" button.
-----
PostOffice.helpBook+Page9
.subject 1
How Do I Change A Set?
.story
-Select the set to be changed from the picker
-Enter the modified information in the input lines.
-Click the "Change" button.
-----
PostOffice.helpBook+Page91
.subject 1
About Newt 3.0
.story
Post Office was written using Newt 3.0 by Steve Weyer.
"Newt 3.0
a native development environment for simple applications using NewtonScript, and for creating turtle-like graphics using gestures, buttons, and NS. "
Newt 3.0 runs on your Newton and produces standalone packages without a desktop computer.
Steve Weyer - weyer@netaxs.com
-----
PostOffice.helpBook+Page92
.subject 1
About The Author
.story
Serg Koren
485 Brown Briar Cir.
Horsham, PA 19044-1974
Post Office is shareware: $8
SergK@eworld.com
archimag@netaxs.com
WizLord@aol.com
http://www.netaxs.com/~archimag/Newton.html
-----
PostOffice.helpBook+Page93
.subject 1
Disclaimers & Limitations
.story
Post Office is provided as is.
Post Office creates a soup called "Post:SKoren".
Post Office also modifies the userConfiguration soup.
-----
GetIcon
func(which)
begin
local iconsoup := GetUnionSoup("Icons:BenG");
local entry := (cursor := Query(iconsoup, {type: 'index})):entry();